package me.lc.linklinkchrist.util;

import com.wiyun.engine.nodes.Director;
import com.wiyun.engine.nodes.Scene;
import com.wiyun.engine.transitions.CrossFadeTransition;
import com.wiyun.engine.transitions.FlipXTransition;
import com.wiyun.engine.transitions.TransitionScene;

public class GameUtil {

	public static void switchSceneFlipX(Scene toScene) {
		Scene scene = FlipXTransition.make(0.5f, toScene, false);
		Director.getInstance().replaceScene(scene);
	}
	
	public static void switchSceneNormal(Scene toScene) {
		Scene scene = CrossFadeTransition.make(0.5f, toScene);
		Director.getInstance().replaceScene(scene);
	}
}
